Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for multiple comma-separated inputs in check-with-type-resolution #214

Conversation

worstell
Copy link
Contributor

@worstell worstell commented Nov 9, 2023

Summary by CodeRabbit

  • New Features
    • Enhanced input directory handling, allowing for multiple directories separated by commas.
  • Improvements
    • Improved logging for invalid input directories.

Copy link

coderabbitai bot commented Nov 9, 2023

Walkthrough

The recent changes to the CheckWithTypeResolutionMojo class in the Kotlin project have enhanced its ability to handle invalid input directories. The inputSkipLog function now accepts a list of invalid directories and logs them accordingly. The update also allows the check for multiple input directories separated by commas, thus improving the logging and handling of such cases.

Changes

File Path Change Summary
.../CheckWithTypeResolutionMojo.kt The inputSkipLog function has been modified to accept a list of invalid input directories and update the log message accordingly. The check for a single input directory has been replaced with a check for multiple input directories separated by commas.

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 30d8193 and f604eee.
Files selected for processing (1)
  • src/main/java/com/github/ozsie/CheckWithTypeResolutionMojo.kt (2 hunks)

worstell added a commit to TBD54566975/ftl that referenced this pull request Nov 9, 2023
…576)

for now, we can use the entire base directory as the input source for
detekt type resolution. [i've submitted a
change](Ozsie/detekt-maven-plugin#214) against
the `detekt-maven-plugin` we're using that will allow us to specify
multiple input sources. once this goes through we can be more granular
to explicitly use the source directory plus generated sources with the
following config:

`<input>${project.basedir}/src/main/kotlin,${project.build.directory}/generated-sources/ftl</input>`
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2023

Codecov Report

Merging #214 (f604eee) into main (30d8193) will increase coverage by 0.02%.
Report is 4 commits behind head on main.
The diff coverage is 87.50%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff              @@
##               main     #214      +/-   ##
============================================
+ Coverage     74.11%   74.13%   +0.02%     
- Complexity       38       39       +1     
============================================
  Files             9        9              
  Lines           170      174       +4     
  Branches         40       41       +1     
============================================
+ Hits            126      129       +3     
  Misses           17       17              
- Partials         27       28       +1     
Files Coverage Δ
...va/com/github/ozsie/CheckWithTypeResolutionMojo.kt 84.00% <87.50%> (-1.72%) ⬇️

@Ozsie Ozsie merged commit d5e0039 into Ozsie:main Nov 10, 2023
14 checks passed
@worstell
Copy link
Contributor Author

@Ozsie Thank you for merging this change. Would it be possible to request a new release that incorporates this? Thank you!

@Ozsie
Copy link
Owner

Ozsie commented Nov 20, 2023

@Ozsie Thank you for merging this change. Would it be possible to request a new release that incorporates this? Thank you!

I'll prepare a release now.

@Ozsie
Copy link
Owner

Ozsie commented Nov 20, 2023

@worstell Version 1.23.3.1 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants